using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Cavendish.AtomLibrary.Entities;
using Cavendish.AtomLibrary.Abstraction;

namespace AtomTester
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();

			
		}


		void helium_NucleusChange(object Sender, EventArgs e)
		{
			Console.WriteLine("changed");
		}


		private void Form1_Load(object sender, EventArgs e)
		{
			
		}

		private void button1_Click(object sender, EventArgs e)
		{
			Helium helium = new Helium();

			// test listener and event
			helium.NucleusChange += new AtomDelegate(helium_NucleusChange);

			// this triggers NucleusChange event because we totally change whole atom from Helium to Helium isotope
			helium.AtomNucleus = new Atom.Nucleus(2, 1);
		}
	}
}